<template>
  <view class="purchase-equipment">
    <image class="qrcode" :src="qrcode" show-menu-by-longpress />
    <view class="hint">长按保存二维码，添加客服微信</view>
  </view>
</template>

<script setup>
import { ref } from 'vue'
import { fetchOtherInfo } from '@/api'

const qrcode = ref('')

fetchOtherInfo(4).then(res => (qrcode.value = res))
</script>

<style scoped lang="scss">
.purchase-equipment {
  padding: 250rpx 0;
  .qrcode {
    width: 270rpx;
    height: 270rpx;
    display: block;
    margin: auto;
  }
  .hint {
    color: #999;
    font-size: 28rpx;
    padding-top: 40rpx;
    text-align: center;
  }
}
</style>
